package com.yunhui.entity;


import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
/**
 * <p>
 * 游记表
 * </p>
 *
 * @author WGH
 * @since 2019-12-09
 */
public class Diary extends Model<Diary> implements Serializable{

    private static final long serialVersionUID = 1L;

    /**
     * 游记编号自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 用户编号
     */
    private Integer uid;
    /**
     * 创建时间
     */
    @TableField("createDate")
    private Date createDate;
    /**
     * 文章标题
     */
    private String title;
    /**
     * 游览次数
     */
    private Integer browse;
    /**
     * 文章内容
     */
    @TableField("Article")
    private String Article;
    /**
     * 文章的头图
     */
    @TableField("diaryImg")
    private String diaryImg;
    /**
     * 文章的头图全路径
     */
    @TableField("diaryImgUrl")
    private String diaryImgUrl;
    /**
     * 行程的天数
     */
    @TableField("Days")
    private Integer Days;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getBrowse() {
        return browse;
    }

    public void setBrowse(Integer browse) {
        this.browse = browse;
    }

    public String getArticle() {
        return Article;
    }

    public void setArticle(String Article) {
        this.Article = Article;
    }

    public String getDiaryImg() {
        return diaryImg;
    }

    public void setDiaryImg(String diaryImg) {
        this.diaryImg = diaryImg;
    }

    public String getDiaryImgUrl() {
        return diaryImgUrl;
    }

    public void setDiaryImgUrl(String diaryImgUrl) {
        this.diaryImgUrl = diaryImgUrl;
    }

    public Integer getDays() {
        return Days;
    }

    public void setDays(Integer Days) {
        this.Days = Days;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Diary{" +
        ", id=" + id +
        ", uid=" + uid +
        ", createDate=" + createDate +
        ", title=" + title +
        ", browse=" + browse +
        ", Article=" + Article +
        ", diaryImg=" + diaryImg +
        ", diaryImgUrl=" + diaryImgUrl +
        ", Days=" + Days +
        "}";
    }
}
